/// openid : "oITKL5-xm8OxqDlNMODKtbsnrrsI"
/// nickname : "冷落了自己"
/// sex : 0
/// language : "zh_CN"
/// city : ""
/// province : ""
/// country : ""
/// headimgurl : "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKSpo8IQnOImD0yQTgPIw7RUffsrWGZibl0FfMAiaFnibzTVXpO0avl2kmczRXBnKLeBasqjPBgdb2icg/132"
/// privilege : []
/// unionid : "obeql5qHIDLXI40xtaNWS4cIjddM"

class WeChatUserInfoModel {
  String openid;
  String nickname;
  int sex;
  String language;
  String city;
  String province;
  String country;
  String headimgurl;
  String unionid;
  int loginType;

  WeChatUserInfoModel({
      this.openid, 
      this.nickname, 
      this.sex, 
      this.language, 
      this.city, 
      this.province, 
      this.country, 
      this.headimgurl, 
      this.loginType,
      this.unionid});

  WeChatUserInfoModel.fromJson(dynamic json) {
    openid = json['openid'];
    nickname = json['nickname'];
    sex = json['sex'];
    language = json['language'];
    city = json['city'];
    province = json['province'];
    country = json['country'];
    headimgurl = json['headimgurl'];
    loginType = json['loginType'];
    unionid = json['unionid'];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['openid'] = openid;
    map['nickname'] = nickname;
    map['sex'] = sex;
    map['language'] = language;
    map['city'] = city;
    map['province'] = province;
    map['country'] = country;
    map['headimgurl'] = headimgurl;
    map['loginType'] = loginType;
    map['unionid'] = unionid;
    return map;
  }

}